@ECHO OFF
SET vsn=0.1.007

ECHO This one doesn't do anything yet. I'm still working
ECHO on getting down solving various problems
ECHO.
ECHO Press any key to exit...
PAUSE>NUL
EXIT


:TOP
CAll :HEADER
CALL :GETQUESTION
GOTO :TOP




:GETQUESTION
REM All quetions on shapes
REM SET OPNUM=%RANDOM:~0,1%
REM IF %OPNUM% GTR 4 GOTO :GETQUESTION
SET OPNUM=1
IF %OPNUM%==1 CALL :GET_Perimeter_Q
IF %OPNUM%==2 CALL :GET_Area_Q
IF %OPNUM%==3 CALL :GET_SupplementaryAngles_Q
IF %OPNUM%==4 CALL :GET_ComplimentaryAngles_Q
GOTO :EOF



:GET_Perimeter_Q
ECHO DON'T HAVE ONE YET
GOTO :EOF

:GET_Area_Q
ECHO DON'T HAVE ONE YET
GOTO :EOF

:GET_SupplementaryAngles_Q
ECHO DON'T HAVE ONE YET
GOTO :EOF

:GET_ComplimentaryAngles_Q
ECHO DON'T HAVE ONE YET
GOTO :EOF




:ASK
ECHO.
ECHO.
SET /P usrInput=%NUM1% %OP% %NUM2% ^= 
IF "%usrInput%"=="%ANS%" GOTO :CORRECT
IF "%usrInput%"=="?" GOTO :FAIL
IF /I "%usrInput%"=="n" GOTO :EOF
ECHO Incorrect
GOTO :ASK

:CORRECT
ECHO CORRECT!
CALL :SLEEP 1
GOTO :EOF

:FAIL
ECHO Answer: %ANS%
GOTO :ASK


:HEADER
CLS
ECHO  ******************************************************************************
ECHO  *                                                                            *
ECHO  *            ******   Lectrode's Mathematics Aide v%vsn%  ******           *
ECHO  *                                                                            *
ECHO  *                        http://www.electrodexs.net                          *
ECHO  *                                                                            *
ECHO  ******************************************************************************
ECHO.
GOTO :EOF



:SLEEP
REM ------------------------PROGRAM SLEEP-------------------------
REM Program sleeps for %1 seconds
IF "%1"=="" SET pN=3
IF NOT "%1"=="" SET pN=%1
PING -n 2 -w 1000 127.0.0.1>NUL
PING -n %pN% -w 1000 127.0.0.1>NUL
GOTO :EOF
REM ------------------------END PROGRAM SLEEP---------------------